package com.niit.users.pojo;

import lombok.Data;

/**
 * 管理员Pojo
 * 
 * @author DELL
 *
 */
@Data
public class TbBus {
    private int busId;
    private String busLicenseNo;
    private int busSeating;

    public void printTitle() {
        String splitStr = "\t\t";
        StringBuffer sb = new StringBuffer();
        sb.append("巴士Id").append(splitStr);
        sb.append("牌号").append(splitStr);
        sb.append("座位数").append(splitStr);
        System.out.println(sb.toString());
    }
    
    public void printInfo() {
        String splitStr = "\t\t";
        StringBuffer sb = new StringBuffer();
        sb.append(busId).append(splitStr);
        sb.append(busLicenseNo).append(splitStr);
        sb.append(busSeating).append(splitStr);
        System.out.println(sb.toString());
    }
    
    public void printInput() {
        String splitStr = ";";
        StringBuffer sb = new StringBuffer();
        sb.append(busId).append(splitStr);
        sb.append(busLicenseNo).append(splitStr);
        sb.append(busSeating).append(splitStr);
        System.out.println("详情信息:" + sb.toString());
    }
}
